<template>
  <div class="redpacket-detail app-wrapper">
    <div class="giver-info">
      <div></div>
      <div class="giver-info-main text-center">
        <div class="media-object"><img src="./img/giver_logo.jpg" alt="" class="img-avtar"></div>
        <div class="media-body">
          <h3 class="media-heading">大鱼艺术教育</h3>
          <p class="media-desc">恭喜发财，大吉大利！</p>
          <div class="media-option">
              <router-link to="/redPacket"><i class="icon icon-reward"></i> 我也发一个</router-link>
              <router-link to="/redMine"><i class="icon icon-record"></i> 红包记录</router-link>
          </div>
        </div>
      </div>
    </div>
    <div class="receive-main">
      <p class="receive-info">该红包已过期，金额15.00元，已领取4/8</p>
      <div class="receive-list">
        <ul>
          <li class="receive-item">
            <div class="media receive-item-media">
              <div class="media-object pull-left"><img src="./img/avtar_80.png" alt=""></div>
              <div class="media-body hidden">
                <div class="media-heading">安琪@梦</div>
                <div class="meida-desc">2019-08-07 12：32</div>
                <span class="money-nums">0.28元</span>
              </div>
            </div>
          </li>
          <li class="receive-item">
            <div class="media receive-item-media">
              <div class="media-object pull-left"><img src="./img/avtar_80.png" alt=""></div>
              <div class="media-body hidden">
                <div class="media-heading">安琪@梦</div>
                <div class="meida-desc">2019-08-07 12：32</div>
                <span class="money-nums">0.28元</span>
              </div>
            </div>
          </li>
          <li class="receive-item">
            <div class="media receive-item-media">
              <div class="media-object pull-left"><img src="./img/avtar_80.png" alt=""></div>
              <div class="media-body hidden">
                <div class="media-heading">安琪@梦</div>
                <div class="meida-desc">2019-08-07 12：32</div>
                <span class="money-nums">0.28元</span>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
    };
  },
  computed: {},
  methods: {},
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
@import '@/assets/config.scss';
.giver-info {
  > div:first-child {
    height: 96px;
    background-color: #e24241;
  }
}

.giver-info-main {
  height: 310px;
  position: relative;
  &:before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 100%;
    top: -80px;
    background-color: #e24241;
  }
  .media-object {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    position: relative;
  }

  .media-heading { font-size: 28px; }
  .media-desc { color: #999; }
  .media-body {
    font-size: 24px;
    line-height: 2;
    color: #666;
  }

  .media-option {
    margin-top: 30px;
    a {
      color: #666;
      &:first-child { margin-right: 100px;}
    }
    .icon {
      font-size: 28px;
      vertical-align: middle;
      position: relative;
      top: -1px;
    }
  }
}
.receive-info {
  font-size: 26px;
  height: 80px;
  line-height: 80px;
  color: $color-gray;
  border-bottom: 2px solid #f2f2f2;
}

.receive-main {
  height: calc(100% - 400px);
  padding: 0 35px;
  background: #fff;
}
.receive-list {
  height: calc(100% - 80px);
}
.receive-item-media {
  padding: 20px 0;
  font-size: 30px;
  color: #333;
  line-height: 1.5;
  position: relative;

  &:after{
    display: block;
    content: '';
    width: 100%;
    height: 2px;
    background-color: #f2f2f2;
    position:absolute;
    left: 0;
    bottom: 0;
  }

  > .media-object {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    >img{
      width: 100%;
      height: 100%;
      border-radius: 100%;
    }
  }


  .money-nums {
    position: absolute;
    right: 0;
    top: 20px;
  }

  .meida-desc {
    font-size: 24px;
    color: $color-dark-gray;
  }
}
</style>